package com.jeesite.modules.task.taskgroup.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * dc_sup_task_groupEntity
 * @author xhc
 * @version 2022-06-28
 */
@Table(name="dc_sup_task_group", alias="a", label="dc_sup_task_group信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="group_name", attrName="groupName", label="组名称", queryType=QueryType.LIKE),
		@Column(name="create_by", attrName="createBy", label="create_by"),
		@Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class DcSupTaskGroup extends DataEntity<DcSupTaskGroup> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 组名称
	 */
	private String groupName;
	
	public DcSupTaskGroup() {
		this(null);
	}

	public DcSupTaskGroup(String id){
		super(id);
	}
	
	@NotBlank(message="组名称不能为空")
	@Size(min=0, max=100, message="组名称长度不能超过 100 个字符")
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	
}